Skip to content

Adding detailed telemetry#561

Merged
mwojtyczka merged 22 commits into
mainfrom
telemetry
Sep 16, 2025
Merged

Adding detailed telemetry#561
mwojtyczka merged 22 commits into
mainfrom
telemetry

Conversation

@mwojtyczka

@mwojtyczka mwojtyczka commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Changes

  • Added detailed telemetry to track usage of different methods
  • Made spark connect column optional to support DQX execution without spark connect
  • Minor docs changes

Linked issues

Resolves #378

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • added end-to-end tests
  • added performance tests

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive telemetry tracking to monitor usage of different DQX methods and storage operations. It introduces a telemetry framework to capture method calls for analytics and monitoring purposes.

  • Added a new telemetry module with decorator-based logging functionality
  • Instrumented engine methods and storage handlers with telemetry decorators
  • Updated documentation to use "in-transit" terminology instead of "in-flight"

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/databricks/labs/dqx/telemetry.py New telemetry module with logging functions and decorator
src/databricks/labs/dqx/engine.py Added telemetry decorators to engine methods and individual check logging
src/databricks/labs/dqx/checks_storage.py Added telemetry decorators to all storage handler methods
pyproject.toml Added "ui/*" to ruff exclude list
docs/dqx/docs/reference/engine.mdx Minor documentation fixes (trailing spaces)
docs/dqx/docs/guide/index.mdx Changed "in-flight" to "in-transit" terminology
demos/dqx_demo_pii_detection.py Changed "in-flight" to "in-transit" terminology

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/databricks/labs/dqx/checks_storage.py
Comment thread src/databricks/labs/dqx/telemetry.py Outdated
@github-actions

github-actions Bot commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

✅ 295/295 passed, 4 flaky, 1 skipped, 3h1m33s total

Flaky tests:

  • 🤪 test_save_results_in_table_in_user_installation_missing_output_and_quarantine_table (4.476s)
  • 🤪 test_e2e_workflow (13m49.895s)
  • 🤪 test_save_load_checks_from_table_in_user_installation (9.044s)
  • 🤪 test_e2e_workflow (10m54.893s)

Running from acceptance #2293

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/databricks/labs/dqx/telemetry.py
Comment thread src/databricks/labs/dqx/utils.py Outdated

@alexott alexott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comments, otherwise looks good to me

Comment thread docs/dqx/docs/reference/testing.mdx

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/databricks/labs/dqx/utils.py
Comment thread src/databricks/labs/dqx/telemetry.py
Comment thread src/databricks/labs/dqx/checks_storage.py
@mwojtyczka mwojtyczka mentioned this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add detailed usage telemetry

3 participants